# ARCH = arm
# CROSS_COMPILE = arm-linux-gnueabi-

# KERNEL_SRC ?= /lib/modules/`uname -r`/build
KERNEL_SRC ?= /labs/linux-lab/linux-stable

EXTRA_FLAGS:= -I.-include ./linux/kthread.h
obj-m	+=   smpmb.o

modules:
	$(MAKE) -C $(KERNEL_SRC) M=$$PWD modules;

modules-install:
	$(MAKE) -C $(KERNEL_SRC) M=$$PWD modules-install;

clean:
	$(MAKE) -C $(KERNEL_SRC) M=$$PWD clean;
	rm -f *.ko;

